package com.itheima.controller;

import com.itheima.service.LocalItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class LocalItemController {

    @Autowired
    LocalItemService localItemService;

    @GetMapping("/hi")
    public String hi(int age) {
        return localItemService.hi(age);
    }


    @GetMapping("/hello")
    public String hello(String name) {
        return localItemService.hello(name);
    }

}
